﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using YTCMS.Core;
using YTCMS.Services.Services;

namespace App.Controllers
{
    /// <summary>
    /// 景点介绍
    /// </summary>
    public class SceneryController : Controller
    {
        private readonly IcategoryService _category;
        public SceneryController(IcategoryService category)
        {
            this._category = category;
        }
        //
        // GET: /Scenery/
        public ActionResult Index()
        {
            var model = _category.GetMany(s => s.State == (int)CommonState.正常);
            return View(model);
        }
	}
}